.head_portrait_bai {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    animation: portrait_bai 1s forwards;
}


.head_portrait_hei {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    /* 正常模式 */

    background-color: rgba(0, 0, 0, 0.6);
    /* 深色模式 */
    /* background-color: rgba(0, 0, 0, 0.8); */
    animation: portrait_hei 1s forwards;
}

@keyframes portrait_bai {
    0% {
        transform: translateY(0);
        background-color: rgb(0, 0, 0, .6);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes portrait_hei {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
        background-color: rgb(0, 0, 0, .6);
        backdrop-filter: blur(1px);
    }
}

.model_content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 50%;
    height: 70%;
    background-color: #fff;
    z-index: 3;
    border-radius: 7px;
    border: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    overflow: hidden;
    background-clip: padding-box;
    outline: none;
    display: flex;
    flex-direction: column;
    animation: model_content 1.1s;
}

@keyframes model_content {
    0% {
        opacity: 0;
        transform: rotate(260deg);
    }

    100% {
        opacity: 1;
        transform: rotate(0);
    }
}

.model_content .modal_header {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px 30px;
    background-color: #0a80ff;
    color: #fff;
    border-bottom: none;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.model_content .modal_header .modal_title {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    justify-content: center;
    align-items: center;
    line-height: 13px;
}

.model_content .modal_header .modal_title h5 {
    font-size: 20px;
    margin-right: 0.5rem !important;
    width: 18px;
    height: 18px;
}

.model_content .modal_header .modal_title i {
    font-size: 16px;
}

.model_content .modal_header button {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-shadow: none;
    font-size: 16px;
    margin: 0;
    border: 0;
    line-height: 1.5 !important;
    font-weight: normal;
    background-color: rgba(255, 255, 255, .3);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    padding: 0;
    width: 30px;
    height: 30px;
    color: #fff;
    outline: none;
    opacity: 1;
}

.modal_body {
    padding: 30px;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    box-sizing: border-box;
}

@media screen and (max-width: 728px) {
    .modal_body {
        padding: 0;
    }
}

.model_content .modal_footer {
    border-top: none;
    padding: 30px;
    padding-top: 0;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.model_content .modal_footer .btn_primary {
    background: #0a80ff;
    border-color: #0a80ff;
    font-size: 14px;
    width: auto;
    color: #fff;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    padding: 9px 14px;
    line-height: 14px;
    outline: none;
    border-radius: 0.25rem;
    border: 0;
}

.modal_body .modal_tab {
    border: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.modal_body .modal_tab .modal_nav_item {
    padding: 10px 0;
    padding-top: 0;
}

.modal_body .modal_tab .modal_nav_item a {
    border: none;
    color: #000;
    border-bottom: 2px solid transparent;
    padding: 10px 15px;
    padding-top: 0;
    text-decoration: none;
}

@media screen and (max-width: 728px) {
    .modal_body .modal_tab .modal_nav_item {
        padding: 5px 0;
        padding-top: 0;
    }

    .modal_body .modal_tab .modal_nav_item a {
        border-bottom: 2px solid transparent;
        padding: 2px 4px;
    }
}

.modal_body .modal_tab .modal_nav_item .item_active {
    transition: all .5s;
    color: #0a80ff;
    border-bottom-color: #0a80ff;
}

.modal_body .tab_content .tab_pane {
    display: none;
    padding-top: 30px;
}

.modal_body .tab_content .tab_pane:first-child {
    display: block;
}


:root {
    --button-width: 58px;
    --button-height: 27px;
    --toggle-diameter: 18px;
    --button-toggle-offset: calc((var(--button-height) - var(--toggle-diameter)) / 2);
    --toggle-shadow-offset: 10px;
    --toggle-wider: 20px;
    --color-grey: rgb(62, 194, 139);
    /* 未点击前整体背景色 */
    --color-dark-grey: #ebebeb;
    --color-green: #1a2236;
    /* 点击后整体背景色 */
}

.circuit_changer {
    display: inline-block;
    width: var(--button-width);
    height: var(--button-height);
    background-color: var(--color-grey);
    border-radius: calc(var(--button-height) / 2);
    position: relative;
    transition: .3s all ease-in-out;
    font-size: 8px;
}

.circuit_changer::after {
    content: '';
    display: inline-block;
    width: var(--toggle-diameter);
    height: var(--toggle-diameter);
    background-color: #ffffff;
    border-radius: calc(var(--toggle-diameter) / 2);
    position: absolute;
    top: var(--button-toggle-offset);
    transform: translateX(var(--button-toggle-offset));
    box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, .10);
    transition: .3s all ease-in-out;
}

#toggle[type="checkbox"]:checked+.circuit_changer {
    background-color: var(--color-green);
}

#toggle[type="checkbox"]:checked+.circuit_changer::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
    box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, .10);
}

#toggle[type="checkbox"] {
    display: none;
}

#toggle[type="checkbox"]:active+.circuit_changer::after {
    width: var(--toggle-wider);
}

#toggle[type="checkbox"]:checked:active+.circuit_changer::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
}

@media(prefers-color-scheme: dark) {
    body {
        background-color: #1C1C1E;
    }

    span {
        background-color: var(--color-dark-grey);
    }
}

.switch_on {
    display: block;
    position: absolute;
    top: 5px;
    left: 25px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    animation: switcho .7s;
    user-select: none;
}

.switch_off {
    display: none;
    position: absolute;
    top: 5px;
    left: 8px;
    font-weight: 700;
    color: #7269ef;
    animation: switchf .7s;
    user-select: none;
}

@keyframes switcho {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes switchf {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}